package com.bjpowernode.crm.workbench.service;

import com.bjpowernode.crm.setting.eneity.User;
import com.bjpowernode.crm.vo.PageinationVO;
import com.bjpowernode.crm.workbench.eneity.Activity;
import com.bjpowernode.crm.workbench.eneity.Clue;
import com.bjpowernode.crm.workbench.eneity.ClueRemark;
import com.bjpowernode.crm.workbench.eneity.Tran;
import com.bjpowernode.crm.workbench.exception.ClueException;

import java.util.List;
import java.util.Map;

public interface ClueService {
    List<User> searchUsers();

    Boolean insert(Clue clue) throws ClueException;
    //分页查询
    PageinationVO<Clue> pageList(Map<String, String> clueMap);
    //线索记录删除
    Boolean delete(String[] ids) throws ClueException;
    //线索详细信息
    Clue detail(String id);
    //获取线索备注信息
    List<ClueRemark> getRemarks(String clueId);
    //获取线索关联的市场活动列表
    List<Activity> getActivityList(String clueId);
    //进行线索转换
    Boolean convert(Tran tran, String clueId, String creatBy) throws ClueException;
}
